package com.itheima.service.impl;

import com.itheima.domain.Dept;
import com.itheima.service.DeptService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class DeptServiceImpl implements DeptService {
//    @Override
//    public List<Dept> findAll() {
//        System.out.println("执行了DeptServiceImpl的findAll方法");
//        return new ArrayList<>();
//    }
//
//    @Override
//    public void save(Dept dept) {
//        System.out.println("执行了DeptServiceImpl的save方法");
//    }

    @Override
    public Dept findById(Integer id) {
        return new Dept(1,"开发部");
    }
}
